package com.example.horizonserver.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.horizonserver.pojo.entity.Dispatch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DispatchMapper extends BaseMapper<Dispatch> {
    /**
     * 分页查询
     * @param page
     * @param lqw
     * @return
     */
    IPage<Dispatch> selectPageWithRelations(Page<Dispatch> page, @Param(Constants.WRAPPER) QueryWrapper<Dispatch> lqw);
}
